projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c0ebfc8
)
efi_loader: log EFI return values too
author
Rob Clark
<
[email protected]
>
Mon, 24 Jul 2017 14:31:52 +0000
(10:31 -0400)
committer
Alexander Graf
<
[email protected]
>
Tue, 25 Jul 2017 08:29:46 +0000
(10:29 +0200)
Turns out this is rather useful to tracking down where things fail.
Signed-off-by: Rob Clark <
[email protected]
>
Signed-off-by: Alexander Graf <
[email protected]
>
include/efi_loader.h
patch
|
blob
|
history
diff --git
a/include/efi_loader.h
b/include/efi_loader.h
index 4bcd35ac77207b2cff25fbeb616a2a461d40cd54..40f6c89e656ab76d1d464f5a21ca99afbf4f3826 100644
(file)
--- a/
include/efi_loader.h
+++ b/
include/efi_loader.h
@@
-20,7
+20,10
@@
debug("EFI: Entry %s(" format ")\n", __func__, ##__VA_ARGS__); \
} while(0)
-#define EFI_EXIT(ret) efi_exit_func(ret);
+#define EFI_EXIT(ret) ({ \
+ debug("EFI: Exit: %s: %u\n", __func__, (u32)((ret) & ~EFI_ERROR_MASK)); \
+ efi_exit_func(ret); \
+ })
extern struct efi_runtime_services efi_runtime_services;
extern struct efi_system_table systab;